package demo1;



public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.openComputer();

        /*computer.useDevice(new Mouse());
        computer.useDevice(new KeyBoard());*/

        computer.useDevice(new Mouse());
        computer.useDevice(new KeyBoard());

        computer.closeComputer();
    }

}
